package com.weasing.res.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.weasing.res.dao.IWxPrivilegeDao;
import com.weasing.res.domain.WxAdmin;
import com.weasing.res.domain.WxPrivilege;
import com.weasing.res.service.IWxPrivilegeService;
import com.weasing.res.service.base.impl.BaseServiceImpl;

@Service
@Transactional
public class WxPrivilegeServiceImpl extends BaseServiceImpl<WxPrivilege>
		implements IWxPrivilegeService {
	@Autowired
	private IWxPrivilegeDao wxPrivilegeDao;

	@Override
	public List<WxPrivilege> findPrivilegeByWxAdminId(WxAdmin wxAdmin) {
		return wxPrivilegeDao.findPrivilegeByWxAdminId(wxAdmin);
	}

	@Override
	public List<WxPrivilege> findPrivilegeByRoleId(Integer roleId) {
		return wxPrivilegeDao.findPrivilegeByRoleId(roleId);
	}

}
